package com.tnr.scgcxx.controller.safty;

import java.io.InputStream;

import javax.servlet.http.HttpSession;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.SessionAttribute;
import org.springframework.web.bind.annotation.SessionAttributes;
import org.springframework.web.multipart.MultipartFile;

import com.tnr.scgcxx.base.Constants;
import com.tnr.scgcxx.base.CurrUser;
import com.tnr.scgcxx.base.Result;
import com.tnr.scgcxx.dto.UserDto;
import com.tnr.scgcxx.exception.BusinessException;
import com.tnr.scgcxx.exception.SysException;
import com.tnr.scgcxx.service.safty.LoginService;

@RestController
@RequestMapping("/safty/home")

public class HomeController {
	
	
	
	
	@GetMapping("/curruser")	
	public CurrUser getCurrUser(@SessionAttribute(Constants.SESSION_ATTR_CURR_USER) CurrUser currUser) {
		return currUser;
	}

}
